package com.JZ.QM.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.JZ.QM.common.utils.PageUtils;
import com.JZ.QM.common.entity.CombinationYieldEntity;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 *
 * @author lyp
 * @email lyp@gmail.com
 * @date 2020-06-14 11:19:36
 * @version 1.0
 */
public interface CombinationYieldService extends IService<CombinationYieldEntity> {

    /**
     * 分叶查询
     * @param params
     * @return
     * @throws Exception
     */
    PageUtils queryPage(Map<String, Object> params) throws Exception;

    /**
     * 根绝组合id获取组合的收益率
     * @param comBaseId 组合基本信息id
     * @return
     */
    HashMap<String,Object> getCombinationYields(Long comBaseId);
    /**
     * 更新每日的组合日收益率
     * @return
     */
    boolean updateCombinationDailyIncomeRadio(String updateDate);

    /**
     * 计算原组合的平均日收益率
     * @param comBaseId 原组合id
     * @return
     */
    BigDecimal getComAverageDailyRadio(Long comBaseId);
}

